package com.se.domain.request.param;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;
import java.util.List;

@Data
@NoArgsConstructor
public class QParam {
    @NotNull
    @NotBlank
    String title;
    @NotNull
    @Min(0)
    @Max(2)
    Byte type;
    List<String> options;

    public QParam(String title, Byte type, List<String> options) {
        this.title = title;
        this.type = type;
        this.options = options;
    }
}
